package org.algorithm.Recursion;

public class Example2
{

    public static void printStr(String str, int index)
    {
        if (index==str.length())
        {
            return;
        }
        System.out.println(str.substring(index,index+1));
        printStr(str,index+1);
//        System.out.println(str.substring(index,index+1));
    }

    public static void main(String[] args) {
        String str = "abc";

        printStr(str,0);
    }
}
